<?php
$config_section="SVN";


$configs=parse_ini_file($config_file, $config_section);

$svn_dir=dirname(__FILE__)."/".$configs[$config_section]['directory'];
$short_svn_dir=$configs[$config_section]['directory'];

$folder = $_REQUEST['folder'];
$full_folder=$svn_dir."/".$_REQUEST['folder'];
$smarty->assign('folder', $folder);

include_once("lib/file.lib.php");

$contents =  ls($short_svn_dir.'/'.$folder, array(".svn", "..", ".project","."));
#echo "$snv_dir<pre>";var_dump($contents);echo "</pre>";

$smarty->assign('folders', $contents);

$smarty->assign('var1', "SVN");
?>
